package com.sctvcloud.dongqu.beans;

import com.ruihang.generalibrary.ui.util.IListData;
import com.sctvcloud.dongqu.ui.util.IListShowData;

import java.util.List;

/**
 * Created by liuyu on 2017/8/9.
 */

public class HomeListItem implements IListShowData {

    private List<NewsItem> newsItemList;
    private List<LinkItem> linkItemList;

    private int viewType;
    private int subType;
    private String subUrl;

    public HomeListItem() {
    }

    public HomeListItem(List<NewsItem> newsItemList) {
        this.newsItemList = newsItemList;
    }

    public List<LinkItem> getLinkItemList() {
        return linkItemList;
    }

    public void setLinkItemList(List<LinkItem> linkItemList) {
        this.linkItemList = linkItemList;
    }

    @Override
    public String getDataTitle() {
        return null;
    }

    @Override
    public String getDataImg() {
        return null;
    }

    @Override
    public String getDataTag() {
        return null;
    }

    @Override
    public String getDataId() {
        return null;
    }

    @Override
    public int getDataType() {
        return 0;
    }

    @Override
    public int getDataViewType() {
        return viewType;
    }

    @Override
    public IListData getOwner() {
        return null;
    }

    @Override
    public String getTime() {
        return null;
    }

    @Override
    public IListShowData getOwenerData() {
        return null;
    }

    public List<NewsItem> getNewsItemList() {
        return newsItemList;
    }

    public void setNewsItemList(List<NewsItem> newsItemList) {
        this.newsItemList = newsItemList;
    }

    public void setViewType(int viewType) {
        this.viewType = viewType;
    }

    public int getSubType() {
        return subType;
    }

    public void setSubType(int subType) {
        this.subType = subType;
    }

    public String getSubUrl() {
        return subUrl;
    }

    public void setSubUrl(String subUrl) {
        this.subUrl = subUrl;
    }

    public int getViewType() {
        return viewType;
    }

    @Override
    public String toString() {
        return "HomeListItem{" +
                "subType=" + subType +
                ", newsItemList=" + newsItemList +
                ", viewType=" + viewType +
                '}';
    }
}
